.uploadImg {
  :global {
    .ant-upload.ant-upload-select-picture-card {
      width: 100%;
      height: 100%;
    }
  }

  :global {
    .ant-upload-picture-card-wrapper {
      vertical-align: top;

      span.ant-upload {
        position: relative;
        padding: 0;

        .ant-spin-nested-loading,
        .ant-spin-container {
          height: 100%;
        }
      }

      .ant-upload-select-picture-card {
        margin: 0;
      }
    }

    .ant-upload-list-picture-card .ant-upload-list-item {
      width: auto;
      height: auto;
      padding: 0;
    }
  }
}

.imgSize {
  width: 100px;
  height: 100px;
}

.imgCenter {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 100%;
  margin: auto;
  max-height: 100%;
}

.preview {
  position: relative;
  height: 100%;

  :global {
    .img-tool {
      position: absolute;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 0;
      color: #fff;
      text-align: right;
      filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#80000000', endColorstr='#80000000') \0;
      background: rgba(0, 0, 0, 0.5);
      width: auto;
      top: 0;
      left: 0;
      overflow: hidden;
      z-index: 300;
      right: 0px;
      border-radius: 5px;

      .img-tool-item {
        cursor: pointer;
        font-size: 16px;
        padding-right: 10px;

        &:last-child {
          padding-right: 0;
        }
      }
    }
  }

  &:hover {
    :global {
      .img-tool {
        height: 100%;
      }
    }
  }
}
